import request from '@/utils/request'

// 获取腾讯广告创意列表
export function apiTencentAdCreativityList(params: any) {
    return request.get({ url: '/ads.tencent_advertising_landing_creatives/lists', params })
}

// 新增腾讯广告创意
export function apiTencentAdCreativityAdd(params: any) {
    return request.post({ url: '/ads.tencent_advertising_landing_creatives/create_dynamic_creatives', params })
}

// 编辑腾讯广告创意
export function apiTencentAdCreativityEdit(params: any) {
    return request.post({ url: '/ads.tencent_advertising_landing_creatives/edit', params })
}

// 复制腾讯广告创意
export function apiTencentAdCreativityCopy(params: any) {
    return request.post({ url: '/ads.tencent_advertising_landing_creatives/creatives_copy', params })
}
 
// get_resources_lists
export function apiGetAdGroupList(params: any) {
    return request.post({ url: '/ads.tencent_advertising_landing_creatives/creatives_copy', params })
}
// 调用腾讯接口获取创意更新apiGetAdCreatives
export function apiGetAdCreatives(params: any) {
    return request.get({ url: '/ads.tencent_advertising_landing_creatives/get_dynamic_creatives', params })
}
//新增：获取官方落地页列表的接口
export function apiGetLandingPages(params: any) {
    return request.get({ url: '/ads.tencent_advertising_landing_creatives/get_page_list', params })
}
// 新增：获取账号列表的接口
export function apiGetAccounts(params: any, options?: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/get_account_list', params }, options)
}
// 新增：获取品牌列表的接口
export function apiGetBrands(params: any) {
    return request.get({ url: '/ads.tencent_advertising_landing_creatives/get_brand_list', params })
}
// 删除腾讯广告创意
export function apiTencentAdCreativityDelete(params: any) {
    return request.post({ url: '/ads.tencent_advertising_landing_creatives/delete', params })
}

// 获取创意详情
export function apiGetDynamicCreativeDetail(params: any) {
    return request.get({ url: '/ads.tencent_advertising_landing_creatives/get_dynamic_creative_detail', params })
}


